package com.czxy.service;

import com.czxy.dao.LinkManMapper;
import com.czxy.domain.LinkMan;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;


@Service
@Transactional
public class LinkManServiceImpl implements  LinkManService {
    @Resource
    private LinkManMapper linkManMapper;





    @Override
    public PageInfo findByInfo(Integer pageNum, Integer pageSize, LinkMan linkMan) {


        PageHelper.startPage(pageNum,pageSize);

        List<LinkMan> list = linkManMapper.selectAll();


        PageInfo<LinkMan> pageInfo = new PageInfo<>(list);

        return pageInfo;
    }
}
